import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 18,
    menuWidth: 300,
    menu: false,
    header: true,
    addBtn: false,
    addBtnText: '新增',
    editBtn: false,
    delBtn: false,
    viewBtn: false,
    searchLabelWidth: 120,
    column: [
      {
        label: '船舶名称',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '承运货物类型',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '洗舱状态',
        prop: 'p3',
        overHidden: true,
        type: 'select',
        dicData: [
          {label: '待洗舱', value: '待洗舱'},
          {label: '洗舱中', value: '洗舱中'},
          {label: '已洗舱', value: '已洗舱'},
        ],
        filterable: true,
      },
      {
        label: '所属船队',
        prop: 'p4',
        overHidden: true,
        hide: true
      },
    ]
  }
}
